<html>
<head><meta charset="utf-8"><title>Can&#x27;t compile on M1 · t-compiler/arm · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/index.html">t-compiler/arm</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/Can&#x27;t.20compile.20on.20M1.html">Can&#x27;t compile on M1</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="238004258"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242906-t-compiler/arm/topic/Can%27t%20compile%20on%20M1/near/238004258" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Cuong Manh Le <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/Can&#x27;t.20compile.20on.20M1.html#238004258">(May 09 2021 at 03:24)</a>:</h4>
<p>Hello, I try compiling rustc in Apple M1, by running <code>./x.py build -i library/std</code>, but got this error:</p>
<div class="codehilite"><pre><span></span><code>downloading https://ci-artifacts.rust-lang.org/rustc-builds-alt/b52769b804a12b7045ee1bce893a64045cdb974a/rust-dev-nightly-aarch64-apple-darwin.tar.xz
-#O=-#      #         #
curl: (22) The requested URL returned error: 404

spurious failure, trying again
downloading https://ci-artifacts.rust-lang.org/rustc-builds-alt/b52769b804a12b7045ee1bce893a64045cdb974a/rust-dev-nightly-aarch64-apple-darwin.tar.xz
#=#=-  #      #
curl: (22) The requested URL returned error: 404

spurious failure, trying again
downloading https://ci-artifacts.rust-lang.org/rustc-builds-alt/b52769b804a12b7045ee1bce893a64045cdb974a/rust-dev-nightly-aarch64-apple-darwin.tar.xz
#=#=-  #      #
curl: (22) The requested URL returned error: 404

spurious failure, trying again
downloading https://ci-artifacts.rust-lang.org/rustc-builds-alt/b52769b804a12b7045ee1bce893a64045cdb974a/rust-dev-nightly-aarch64-apple-darwin.tar.xz
#=#=-  #      #
curl: (22) The requested URL returned error: 404

spurious failure, trying again
downloading https://ci-artifacts.rust-lang.org/rustc-builds-alt/b52769b804a12b7045ee1bce893a64045cdb974a/rust-dev-nightly-aarch64-apple-darwin.tar.xz
#=#=-  #      #
curl: (22) The requested URL returned error: 404
failed to run: curl -# -y 30 -Y 10 --connect-timeout 30 --retry 3 -Sf -o /var/folders/rz/mxg9f82d2kl7jycb_rvrdp2r0000gn/T/tmpsno5mab1 https://ci-artifacts.rust-lang.org/rustc-builds-alt/b52769b804a12b7045ee1bce893a64045cdb974a/rust-dev-nightly-aarch64-apple-darwin.tar.xz
Build completed unsuccessfully in 0:01:32
</code></pre></div>
<p>Any hint on this?</p>



<a name="238041353"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242906-t-compiler/arm/topic/Can%27t%20compile%20on%20M1/near/238041353" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Amanieu <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/Can&#x27;t.20compile.20on.20M1.html#238041353">(May 09 2021 at 15:01)</a>:</h4>
<p>cc <span class="user-group-mention" data-user-group-id="2943">@T-infra</span></p>



<a name="238041410"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242906-t-compiler/arm/topic/Can%27t%20compile%20on%20M1/near/238041410" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Pietro Albini <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/Can&#x27;t.20compile.20on.20M1.html#238041410">(May 09 2021 at 15:02)</a>:</h4>
<p>uh why is it downloading builds from <code>-alt</code>?</p>



<a name="238041412"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242906-t-compiler/arm/topic/Can%27t%20compile%20on%20M1/near/238041412" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Pietro Albini <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/Can&#x27;t.20compile.20on.20M1.html#238041412">(May 09 2021 at 15:02)</a>:</h4>
<p>what command are you using?</p>



<a name="238050573"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242906-t-compiler/arm/topic/Can%27t%20compile%20on%20M1/near/238050573" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Eric Huss <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/Can&#x27;t.20compile.20on.20M1.html#238050573">(May 09 2021 at 17:56)</a>:</h4>
<p>Looks like if you have llvm assertions enabled in config.toml it will use <code>-alt</code>, that is something else to check.</p>



<a name="238105341"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242906-t-compiler/arm/topic/Can%27t%20compile%20on%20M1/near/238105341" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Cuong Manh Le <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/Can&#x27;t.20compile.20on.20M1.html#238105341">(May 10 2021 at 08:35)</a>:</h4>
<p><span class="user-mention" data-user-id="121055">@Pietro Albini</span> <code>./x.py build -i library/std</code></p>
<p><span class="user-mention" data-user-id="120518">@Eric Huss</span> yeah, I have that assertion enabled</p>



<a name="238105421"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242906-t-compiler/arm/topic/Can%27t%20compile%20on%20M1/near/238105421" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Pietro Albini <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/Can&#x27;t.20compile.20on.20M1.html#238105421">(May 10 2021 at 08:36)</a>:</h4>
<p><span class="user-mention" data-user-id="410720">@Cuong Manh Le</span> we're not producing alt builds for that platform</p>



<a name="238105484"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242906-t-compiler/arm/topic/Can%27t%20compile%20on%20M1/near/238105484" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Pietro Albini <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/Can&#x27;t.20compile.20on.20M1.html#238105484">(May 10 2021 at 08:36)</a>:</h4>
<p>could you paste your <code>config.toml</code>?</p>



<a name="238105603"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242906-t-compiler/arm/topic/Can%27t%20compile%20on%20M1/near/238105603" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Cuong Manh Le <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/Can&#x27;t.20compile.20on.20M1.html#238105603">(May 10 2021 at 08:37)</a>:</h4>
<p><span class="user-mention" data-user-id="121055">@Pietro Albini</span> It's the default one from <code>config.toml.example</code>. I disabled llvm assertion now, the script start downloading llvm ...</p>



<a name="238158989"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242906-t-compiler/arm/topic/Can%27t%20compile%20on%20M1/near/238158989" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Eric Huss <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/Can&#x27;t.20compile.20on.20M1.html#238158989">(May 10 2021 at 15:15)</a>:</h4>
<p>The default for assertions should be off:</p>
<div class="codehilite" data-code-language="TOML"><pre><span></span><code><span class="c1"># Indicates whether the LLVM assertions are enabled or not</span>
<span class="c1">#assertions = false</span>
</code></pre></div>
<p>And the default for downloading llvm should be off (unless you've chosen a profile):</p>
<div class="codehilite" data-code-language="TOML"><pre><span></span><code><span class="c1">#download-ci-llvm = false</span>
</code></pre></div>
<p>I wouldn't expect the default config.toml to try to download llvm.</p>



<a name="238160276"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242906-t-compiler/arm/topic/Can%27t%20compile%20on%20M1/near/238160276" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Cuong Manh Le <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/Can&#x27;t.20compile.20on.20M1.html#238160276">(May 10 2021 at 15:20)</a>:</h4>
<p><span class="user-mention" data-user-id="120518">@Eric Huss</span> Ops, sorry, I messed up my example file, actually, the config.toml I used is the one in <a href="https://rustc-dev-guide.rust-lang.org/building/how-to-build-and-run.html">https://rustc-dev-guide.rust-lang.org/building/how-to-build-and-run.html</a></p>



<a name="238162809"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242906-t-compiler/arm/topic/Can%27t%20compile%20on%20M1/near/238162809" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Eric Huss <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/Can&#x27;t.20compile.20on.20M1.html#238162809">(May 10 2021 at 15:35)</a>:</h4>
<p>It might be nice if the download error printed a message indicating that pre-built llvm with assertions isn't available and to disable one or the other option.</p>



<a name="238197327"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242906-t-compiler/arm/topic/Can%27t%20compile%20on%20M1/near/238197327" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jubilee <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/Can&#x27;t.20compile.20on.20M1.html#238197327">(May 10 2021 at 19:19)</a>:</h4>
<p>cc <span class="user-mention" data-user-id="232545">@Joshua Nelson</span> you may want to take a look since this concerns the <code>config.toml</code> / <code>x.py</code> usability stuff.</p>



<a name="238218941"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242906-t-compiler/arm/topic/Can%27t%20compile%20on%20M1/near/238218941" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/Can&#x27;t.20compile.20on.20M1.html#238218941">(May 10 2021 at 22:03)</a>:</h4>
<p>I won't have time to look for at least the next week</p>



<a name="238218961"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242906-t-compiler/arm/topic/Can%27t%20compile%20on%20M1/near/238218961" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/Can&#x27;t.20compile.20on.20M1.html#238218961">(May 10 2021 at 22:03)</a>:</h4>
<p>Please open an issue if you think it's worth following up on</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>